<script setup lang="ts">
import { reactive, ref } from 'vue'

const form = reactive({
    firstname: '',
    lastname: '',
    email: '',
    password: '',
})
</script>

<template>
    <div class="content">
        <div class="title">Регистрация на портале</div>
        <el-form class="form">
            <el-form-item label="Имя">
                <el-input v-model="form.firstname" placeholder="Имя" />
            </el-form-item>
            <el-form-item label="фамилия">
                <el-input v-model="form.lastname" placeholder="Фамилия" />
            </el-form-item>
            <el-form-item label="Эл.почта">
                <el-input v-model="form.email" placeholder="Адрес эл.почты" />
            </el-form-item>
            <el-form-item label="Пароль">
                <el-input v-model="form.password" type="password" placeholder="Пароль" />
            </el-form-item>
            <el-form-item label="Уже есть аккаунт?">
                <el-link href="./signin" type="primary">Войти</el-link>
            </el-form-item>
            <el-form-item>
                <el-button class="button">Регистрация</el-button>
            </el-form-item>
        </el-form>
    </div>
</template>

<style lang="sass" scoped>
@import '../assets/styles/main'

.content
    width: 30%
    margin: 0 auto
    margin-top: 6em
    margin-bottom: 10em
    box-shadow: 0 0 10px 5px rgba(221, 221, 221, 1)

.title
    text-align: center
    padding-top: 1em
    padding-bottom: 1em
    text-transform: uppercase

.form
    padding: 1em

.button
    background: $blue_m
    color: $white
    width: 95%
    margin: 0 auto
    margin-bottom: 1em
.button:hover
    background: $blue_none
</style>